
import Home from "../views/Home";

const routes = [
    {
      path: "/",
      name: "Home",
      component: Home
    },
    {
      path: "/category",
      name:'Category',
      component: () => import("../views/Category.vue")
    },
    {
      path: "/login",
      name:'Login',
      component: () => import("../views/Login.vue")
    },
    {
      path: "/user",
      name: "User",
      component: () => import("../views/User.vue"),
    },
    {
      path: "/user/setting",
      name: "UserSetting",
      meta: { login:1},
      component: () => import("../views/user/Setting.vue")
    },
    {
      path: '/search',
      name: 'Search',
      component: () => import("../views/Search.vue")
    },
    {
      path: '/detail/:id',
      name: 'Detail',
      component: () => import("../views/Detail.vue")
    },
    {
      path:"*",
      name:"NotFound",
      component: () => import("../views/NotFound.vue")
    }
  ];

export default routes;